//------------------------------------------------------------------------------------------------------------
//    first enter terminal and cd the file path
//    and run "echo dir /b *.*>0.txt"
//    and then there is a 0.txt with image name
//    and run this cpp to get 1.txt with one column
//------------------------------------------------------------------------------------------------------------
#include<iostream>
#include<fstream>

using namespace std;

int main()
{
    //-------------------set file path-----------------------------------------------
    ifstream myFile("/Users/new/Desktop/INRIADATA/normalized_images/train/train_thr/har_mix/0.txt");
    ofstream outFile("/Users/new/Desktop/INRIADATA/normalized_images/train/train_thr/har_mix/HardExample_2400PosINRIA_12000NegList.txt");
    string temp;
    if(myFile)
    {
    while(getline(myFile,temp,' '))
    {
        outFile<<temp<<endl;
    }
    }
    else{
        cout<<"No Such File!~"<<endl;
    }
    return 0;
}
